package cn.wolfcode.luowowo.search.service;

import cn.wolfcode.luowowo.search.template.ShopStrategyTemplate;
import cn.wolfcode.luowowo.search.vo.StatisVO;
import org.elasticsearch.search.suggest.phrase.LinearInterpolatingScorer;

import java.util.List;
import java.util.Map;

public interface IShopStrategyTemplateSearchService {
    /**
     * es里添加和更新操作
         * @param shopStrategyTemplate
     */
    void saveOrUpdate(ShopStrategyTemplate shopStrategyTemplate);

    /**
     * 封装商品左侧导航栏
     * @return
     */
    List<Map<String,Object>> selectByThemeId(int type);

    /**
     * 找出所有子菜单
     * @return
     */
    List<StatisVO> selectByParentIdIsNull();
}
